<template>
	<view class="nt-entry">
		<view class="nt-entry-item" v-for="(it, index) in data" :key="index" @tap="$emit('click', index)" v-if="it.visiable">
			<image class="nt-entry-item--icon" :src="it.icon"></image>
			<view class="nt-entry-item--label">{{ it.label }}</view>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		data: {
			type: Array,
			default: () => []
		}
	},
}
</script>

<style lang="scss" scoped>
	.nt{
		&-entry{
			display:flex;
			align-items: center;
			justify-content: flex-start;
			background:var(--theme-color);
			padding: 30rpx;
			box-sizing: border-box;
			&-item{
				text-align:center;
				width: 25%;
				&--icon{
					width: 100rpx;
					height: 100rpx;
				}
				&--label{
					font-size: 24rpx;
					color:#fff;
					// margin-top: 10rpx;
				}
			}
		}
	}
</style>